<h1>Listing transactions</h1>

<table>
  <tr>
    <th>Seller</th>
    <th>Buyer</th>
    <th>Ad</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @transactions.each do |transaction| %>
  <tr>
    <td><%= transaction.seller %></td>
    <td><%= transaction.buyer %></td>
    <td><%= transaction.ad %></td>
    <td><%= link_to 'Show', transaction %></td>
    <td><%= link_to 'Edit', edit_transaction_path(transaction) %></td>
    <td><%= link_to 'Destroy', transaction, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Transaction', new_transaction_path %>
